import { MockMethod } from "vite-plugin-mock";
import { mock, Random } from "mockjs";
const dataGoods = mock({
  "list|10": [
    {
      goods: () => Random.name(),
      price: 3000,
    },
  ],
});
export default [
  {
    url: "/mock/user/menuList", //请求地址
    method: "post", //请求方式
    response: () => {
      console.log(dataGoods);
      return { code: 200, data: dataGoods };
    },
  },
] as MockMethod[];
